package com.hp.goods_service.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hp.goods_service.entity.Goods;

public interface IGoodsService extends IService<Goods> {

    Goods getGoodsById(Long id);

    IPage<Goods> getGoodsPage(Page<Goods> page);

    Goods saveGoods(Goods goods);

    Goods updateGoods(Goods goods);

    void removeGoods(Long id);

    Boolean buy();
}
